package com.groupbuying.provider.controller;

import com.groupbuying.provider.service.StoreCheckoutCounterRelService;
import com.groupbuying.provider.utils.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @anthor wenguoqiang
 * @date: 2019/01/30 10:27
 * @company 够样
 * @des
 **/
@Api("连锁门店收银台接口")
@RequestMapping("/counter")
@RestController
public class ChainStoresCounterController {
    @Autowired
    private StoreCheckoutCounterRelService storeCheckoutCounterRelService;

    /**
     * 获取收款台列表
     *
     * @param mapParams
     * @return
     */
    @ApiOperation(value = "获取收款台列表接口", notes = "收款台列表接口")
    @PostMapping("/getCheckoutCounterList")
    public R getCheckoutCounterList(@RequestBody Map<String,Object> mapParams) {
        return storeCheckoutCounterRelService.getCheckoutCounterList(mapParams);
    }

}
